package top.yxqz.springmvc.msg.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @author: 余小小
 * @date: 2023/4/27
 * @description：
 */
@Controller
@RequestMapping("/msg/session")
public class ShareDataSessionController {
    /**
     * uri: /msg/session/
     * @return
     */
    @GetMapping("/")
    public String methodName(HttpSession session) {
        session.setAttribute("name_session", "软件21.6（session）");
        return "success";
    }
}
